/*
 * @Author: 星孑
 * @Date: 2022-04-12 16:22:27
 * @LastEditors: 星孑
 * @LastEditTime: 2022-04-19 21:10:57
 * @FilePath: /strategy-admin/src/utils/auth.js
 * @Description: 通用
 */
// import { setCookie, getCookie, removeCookie } from 'xj-tools'

// const TokenName = 'X-Token'

// export const getToken = () => {
//   return getCookie(TokenName)
// }

// export const setToken = (token: string) => {
//   setCookie(TokenName, token)
// }

// export const removeToken = () => {
//   removeCookie(TokenName)
// }

export const getStorage = (name: string) => {
  return localStorage.getItem(name)
}

export const setStorage = (name: string, data: string) => {
  return localStorage.setItem(name, data)
}

export const removeStorage = (name: string) => {
  return localStorage.removeItem(name)
}
